package com.eascs.crm.nsEditDetail.dao;

import org.springframework.stereotype.Repository;
import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.admin.o2o.loan.entity.O2oLoanUserEntity;

@Repository
public class SponsorDao  extends BaseO2oDao{

	public boolean saveEntity(O2oLoanUserEntity entity) {
		return o2oJdbcSession.insert(entity) > 0 ? true : false;
	}
	
	public O2oLoanUserEntity queryEntityByDocumentNo(String documentNo) {
		String sql="SELECT * FROM o2o_loan_user  WHERE document_no=?";
		return o2oJdbcSession.findEntity(sql, O2oLoanUserEntity.class, documentNo);
	}
	
}
